<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org/extras/spring-security">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>好货商城</title>
</head>

<body>
	<h1 align="center"><span style="color: red" sec:authentication="principal.username"></span>欢迎进入商城管理后台<span
			style="padding-left: 50px;font-size: 20px">
			<a href="/logout">退出登录</a>
		</span></h1>
	<hr>

	<ul>
		<li><a href="/goods">查看商品列表（无需登录）</a></li>
		<li sec:authorize="isAuthenticated()"><a href="/purchaser/buy">加入购物车并支付（需登录）</a></li>
		<li sec:authorize="hasRole('manager')"><a href="/admin/goods/check">审核发布商品（管理员）</a></li>
		<li sec:authorize="hasRole('manager')"><a href="/admin/shop/check">审核店铺信息（管理员）</a></li>
		<li sec:authorize="hasAnyRole('vip','manager')"><a href="/shopkeeper/publish">店主发布商品信息（VIP/管理员）</a></li>
	</ul>


</body>

</html>